Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Fix slow Segment calls #1013

Merged
merged 1 commit into from
Aug 15, 2022
Merged

Fix slow Segment calls #1013

merged 1 commit into from
Aug 15, 2022

Conversation

itegulov
Copy link
Contributor

Apparently, making identify calls is very expensive, and Segment documentation suggests to only do it once (when user signs up, logs in etc). I think we should be fine without making identify calls at all as alias is doing the same thing in our specific use case.

Reduces near view-state accountname.testnet --finality final execution time from 10s to <1s on my machine.

@itegulov itegulov requested a review from volovyks August 11, 2022 07:21
@volovyks volovyks merged commit 5f8adf4 into master Aug 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants